<?php
define('MODULE_NAME','message');
$actions = array('index','submit');
$action = 'index';

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		$action = 'index';
}
	
define('ACTION_NAME',$action);

require_once './core/service/fanwe.service.php';
$fanwe = &FanweService::instance();
$fanwe->is_group_city = true;
$fanwe->initialize();

require import('module/message');

switch(ACTION_NAME)
{
	case 'index':
		MessageModule::index();
	break;
	
	case 'submit':
		MessageModule::submit();
	break;
}
?>